home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 004 / mandel / mand.h < prev    next >
C/C++ Source or Header  |  1995-03-17  |  3KB  |  124 lines

  1. /*
  2.                     MAND.H -- The Constants
  3.              Mandelbrot Self-Squared Dragon Generator
  4.                     For the Commodore Amiga
  5.                          Version 1.00
  6.  
  7.                       Accompanies MAND.C
  8.  
  9.              Copyright (c) 1985, Robert S. French
  10.                   Placed in the Public Domain
  11.  
  12.      Assorted Goodies and Intuition-stuff by =RJ Mical=  1985
  13.  
  14. This program may be distributed free of charge as long as the above
  15. notice is retained.
  16.  
  17. */
  18.  
  19.  
  20. /*-------------------*/
  21. /* Lots of includes! */
  22.  
  23. #include <exec/types.h>
  24. #include <exec/tasks.h>
  25. #include <exec/libraries.h>
  26. #include <exec/devices.h>
  27. #include <devices/keymap.h>
  28. #include <graphics/copper.h>
  29. #include <graphics/display.h>
  30. #include <graphics/gfxbase.h>
  31. #include <graphics/text.h>
  32. #include <graphics/view.h>
  33. #include <graphics/gels.h>
  34. #include <graphics/regions.h>
  35. #include <hardware/blit.h>
  36. #include <intuition/intuition.h>
  37. #include <intuition/intuitionbase.h>
  38. #include <stdio.h>
  39.  
  40.  
  41. /*-------------------*/
  42. /* Misc. definitions */
  43. #define VERSION "2.00"
  44.  
  45. #define F_INTUITION 0x000001
  46. #define F_GRAPHICS  0x000002
  47. #define F_MATH      0x000004
  48. #define F_MATHTRANS 0x000008
  49. #define F_CONSOLE   0x000010
  50. #define F_COLORTAB  0x000020
  51. #define F_SETSTORE  0x000040
  52.  
  53.  
  54. #define EVER ;;
  55. #define MAXX 640
  56. #define MAXY 400
  57. #define MAXMY 100
  58. #define STARTY 0
  59.  
  60. /*---------------------------------*/
  61. /* Fast-Floating-Point Definitions */
  62.  
  63. extern   int     SPFix();
  64. extern   int     SPFlt();
  65. extern   int     SPCmp();
  66. extern   int     SPTst();
  67. extern   int     SPAbs();
  68. extern   int     SPNeg();
  69. extern   int     SPAdd();
  70. extern   int     SPSub();
  71. extern   int     SPMul();
  72. extern   int     SPDiv();
  73.  
  74. extern   int     SPAtan();
  75. extern   int     SPSin();
  76. extern   int     SPCos();
  77. extern   int     SPTan();
  78. extern   int     SPSincos();
  79. extern   int     SPSinh();
  80. extern   int     SPCosh();
  81. extern   int     SPTanh();
  82. extern   int     SPExp();
  83. extern   int     SPLog();
  84. extern   int     SPPow();
  85. extern   int     SPSqrt();
  86. extern   int     SPTieee();
  87. extern   int     SPFieee();
  88.  
  89.  
  90. #define TOPW2 w2->BorderTop
  91. #define BOTTOMW2 (w2->Height - w2->BorderBottom)
  92. #define LEFTW2 w2->BorderLeft
  93. #define RIGHTW2 (w2->Width - w2->BorderRight)
  94.  
  95.  
  96. /* === these definitions are for the color_mode variable ================== */
  97. #define NOT_HOLDANDMODIFY    0x0001
  98. #define INTERLACE_MODE        0x0002
  99. #define HIRES_MODE        0x0004
  100.  
  101. /* === these definitions are for the menu strips ========================== */#define ITEM_HEIGHT 10
  102. #define MENU_OPTIONS 0    /* first menu */
  103. #define MENU_ZOOM 1     /* next menu */
  104. #define MENU_COUNT 2
  105.  
  106. /* for the OPTIONS Menu ... */
  107. #define OPTIONS_WIDTH   176
  108. #define OPTIONS_STOP    0
  109. #define OPTIONS_QUARTER 1
  110. #define OPTIONS_FULL    2
  111. #define OPTIONS_GENERATE 3
  112. #define OPTIONS_CLOSE    4
  113. #define OPTIONS_COUNT   5
  114.  
  115. /* for the ZOOM Menu ... */
  116. #define ZOOM_WIDTH   174
  117. #define ZOOM_SETCENTER    0
  118. #define ZOOM_SIZEBOX      1
  119. #define ZOOM_ZOOMIN       2
  120. #define ZOOM_ZOOMIN10     3
  121. #define ZOOM_ZOOMOUT2     4
  122. #define ZOOM_ZOOMOUT10    5
  123. #define ZOOM_COUNT        6
  124.